<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="65px;">序号</td>
                <td class="text-center">LOGO</td>
                <td class="text-center">课程名称</td>
                <td class="text-center">教练</td>
                <td class="text-center">价格</td>
                <td class="text-center">展示状态</td>
                <td class="text-center">排序</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$list.courseId}</td>
                    <td class="text-center"><a href="{$list.courseLogo}" target="_blank"><img src="{$list.courseLogo}" width="50px" height="50px"/></a></td>
                    <td class="text-center">{$list.courseTitle}</td>
                    <td class="text-center">{$list.coachName}</td>
                    <td class="text-center">￥{$list.coursePrice}</td>
                    <td class="text-center">
                        <img width="20" height="20" src="__PUBLIC__/images/<if condition='$list.courseStatus eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('coach_course','courseId','{$list.courseId}','courseStatus',this)"/>
                    </td>
                    <td class="text-center">
                        <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="updateSort('coach_course','courseId','{$list.courseId}', 'courseSort', this)" size="4" value="{$list.courseSort}" class="input-sm" />
                    </td>

                    <td class="text-center">
                        <a href="javascript:;" style="margin:0" onclick="layerAlert('编辑课程', '{:U('coach/editCourse', array('courseId' => $list.courseId))}', '70%', '85%')" class="btn btn-primary" title="编辑"><i class="fa fa-pencil"></i></a>
                        <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('coach/delCourse')}" data-id="{$list.courseId}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>